#!/bin/bash
source ./cleanconfig.sh


mysqlxx="mysql -h${mysql_host} -P${mysql_port} -u${mysql_user} -p${mysql_pass}"

${mysqlxx} -e "drop database ${mysql_database};create database ${mysql_database};"

redis="redis-cli -h ${redis_host} -p ${redis_port} -a ${redis_pass} -n 1"
keyscmd=${redis}' keys '${redis_key}
delcmd=${redis}' del '
echo ${delcmd}
${keyscmd} |xargs ${delcmd} 
